package com.guli.third.controller;

import com.guli.common.to.SmsCode;
import com.guli.common.utils.R;
import com.guli.third.properties.SmsProperties;
import com.guli.third.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sms")
public class SmsController {
    @Autowired
    SmsProperties smsProperties;
    @Autowired
    private SmsService smsService;

    @PostMapping("/sendcode")
    public R code(@RequestBody SmsCode smsCode) {
        R isSend = smsService.sendSmsCode(smsCode);
        return isSend;
    }
}
